#!/bin/bash
./configure \
--enable-static \
--disable-everything \
--disable-debug \
--extra-cflags="-I/mingw/include" \
--extra-ldflags=-L/mingw/lib \
--prefix=./output \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--disable-programs \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-decoders \
--enable-decoder=h264 \
--enable-decoder=mjpeg \
--enable-decoder=hevc \
--enable-decoder=aac \
--disable-encoders \
--enable-encoder=aac \
--disable-avfilter \
--disable-avdevice \
--disable-swscale \
--disable-demuxers \
--enable-demuxer=h264 \
--enable-demuxer=hevc \
--enable-demuxer=mjpeg \
--enable-demuxer=aac \
--enable-demuxer=avi \
--enable-demuxer=mov \
--enable-demuxer=mpegps \
--disable-iconv \
--disable-filters \
--enable-bsfs \
--disable-muxers \
--enable-muxer=avi \
--enable-muxer=mp4 \
--enable-muxer=adts \
--disable-protocols \
--enable-protocol=file \
--disable-parsers \
--enable-parser=h264 \
--enable-parser=hevc \
--enable-parser=mjpeg \
--disable-devices \
--enable-asm \
--enable-inline-asm \
--enable-hardcoded-tables \
--enable-hwaccel=h264_dxva2 \
--enable-hwaccel=hevc_dxva2 \
--disable-network \
--cpu=i686 \
--arch=x86_32














 --prefix=/mingw64
--target-os=mingw32 \
--arch=x86_64 \
--cc=gcc \
--cxx=g++ \
--disable-debug \
--disable-stripping \
--disable-doc \
--enable-dxva2 \
--enable-d3d11va \
--enable-frei0r \
--enable-gmp \
--enable-gnutls \
--enable-gpl \
--enable-iconv \
--enable-libaom \
--enable-libass \
--enable-libbluray \
--enable-libcaca \
--enable-libdav1d - \
-enable-libfontconfig \
--enable-libfreetype \
--enable-libfribidi \
--enable-libgme \
--enable-libgsm \
--enable-libharfbuzz \
--enable-libjxl \
--enable-libmodplug \
--enable-libm \
p3lame \
--enable-libopencore_amrnb \
--enable-libopencore_amrwb \
--enable-libopenjpeg \
--enable-libopus \
--enable-libplacebo \
--enable-librsvg \
--enable-librtmp \
--enable-lib \
ssh \
--enable-libsoxr \
--enable-libspeex \
--enable-libsrt \
--enable-libtheora \
--enable-libvidstab \
--enable-libvorbis \
--enable-libx264 \
--enable-libx265 \
--enable-libxvid - \
-enable-libvpx \
--enable-libwebp \
--enable-libxml2 \
--enable-libzimg \
--enable-libzvbi \
--enable-openal \
--enable-pic \
--enable-postproc \
--enable-runtime-cpudetect \
--enable \
-swresample \
--enable-version3 \
--enable-vulkan \
--enable-zlib \
--enable-librav1e \
--enable-libvpl \
--enable-libsvtav1 \
--enable-amf \
--enable-nvenc \
--logfile=config.log \
--enable-shared \














# https://blog.csdn.net/sinat_38854292/article/details/123234643
# ffmpeg 安装路径
export ipath=./ffmpeg
rm -rf $ipath
# 设置安装包执行路径
export PATH=$PATH:$ipath/bin
# 设置动态库路径
export PKG_CONFIG_PATH=$ipath/lib/pkgconfig
# 设置编译主目录路径
export homeMake=$(pwd)
cd $homeMake/build/

cd ffmpeg-4.4.4/
./configure \
--enable-static \
--disable-everything \
--disable-debug \
--extra-cflags="-I/mingw/include" \
--extra-ldflags=-L/mingw/lib \
--prefix=./output \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--disable-programs \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-decoders \
--enable-decoder=h264 \
--enable-decoder=mjpeg \
--enable-decoder=hevc \
--enable-decoder=mp3float \
--enable-decoder=pcm_s16le \
--disable-encoders \
--disable-avfilter \
--disable-avdevice \
--disable-swscale \
--disable-demuxers \
--enable-demuxer=h264 \
--enable-demuxer=hevc \
--enable-demuxer=mjpeg \
--enable-demuxer=mp3 \
--disable-iconv \
--disable-filters\
 --disable-bsfs \
 --disable-muxers \
 --enable-muxer=avi \
 --disable-protocols \
--enable-protocol=file \
--disable-parsers \
--disable-devices \
--enable-asm \
--enable-inline-asm \
--enable-hardcoded-tables \
--enable-hwaccel=h264_dxva2 \
--disable-network \
--cpu=i686 --arch=x86_32 \
--enable-small
